export const tableOption = {
  labelPosition: "left",
  labelSuffix: "：",
  labelWidth: 140,
  gutter: 0,
  menuBtn: true,
  align: "center",
  submitBtn: true,
  submitText: "提交",
  stripe: true,
  emptyBtn: true,
  emptyText: "清空",
  menuPosition: "center",
  border: true,
  index: true,
  indexLabel: "序号",
  addBtn: false,
  editBtn: false,
  delBtn: false,
  menuWidth: 350,
  searchEnter: true,
  searchMenuPosition: "right", // 搜索游戏按钮位置
  searchMenuSpan: 24, // 搜索表单所占的栅格数

  editConfig: {
    trigger: "click", // 点击单元格触发编辑
    mode: "cell", // 单元格编辑模式
  },

  column: [
    {
      type: "input",
      label: "产线模板名称",
      prop: "realityLineName",
      span: 6,
      search: true,
      searchLabelWidth: 110,
    },
    {
      type: "select",
      label: "产线类型",
      prop: "lineType",
      span: 12,

      dicUrl: "/admin-api/system/dict-data/type?type=line_type",
      dicMethod: "get",
      search: true,
      searchLabelWidth: 90,
      //产线类型列表
      // props: {
      //   label: "productCategory",
      //   value: "productCategory",
      // },
    },

    // {
    //   type: "select",
    //   label: "产线分类",
    //   prop: "productCategory",
    //   span: 6,
    //   dicUrl: "/admin-api/o3-workorder/hdviewapiitem/getCategory",
    //   dicMethod: "get",
    //   //产线类型列表
    //   props: {
    //     label: "productCategory",
    //     value: "productCategory",
    //   },
    //   search: true,
    //   searchLabelWidth: 90,
    // },
    {
      type: "select",
      label: "产品分类",
      prop: "productCategory",
      span: 6,
      dicUrl: "/admin-api/o3-workorder/hdviewapiitem/getCategory",
      dicMethod: "get",

      props: {
        label: "productCategory",
        value: "productCategory",
      },
      search: true,
      searchLabelWidth: 90,
    },

    {
      type: "input",
      label: "描述",
      prop: "describe",
      cell: true, // 开启单元格编辑
      span: 12,
    },
    // {
    //   type: "input",
    //   label: "线平衡率",
    //   prop: "lineIndicator",
    //   span: 12,
    // },
    {
      type: "select",
      label: "模板状态",
      prop: "status",
      span: 6,
      dicUrl: "/admin-api/system/dict-data/type?type=line_modeling_status",
      dicMethod: "get",
      props: {
        label: "label",
        value: "value",
      },
      search: true,
      searchLabelWidth: 90,
      value: "0",
    },
  ],
};
